#!/bin/sh

echo building antbar.jar

cd chrome
rm -f antbar.jar
zip -r "-x@../buildjar.exclude" antbar.jar * || { 
        echo "cannot build antbar.jar "
        exit 
}
cd ..

echo building anttoolbar.xpi

rm -f anttoolbar.xpi

# pre zipping
unlink chrome.manifest
ln -s chrome.manifest.release chrome.manifest

zip -r -x@buildxpi.exclude  anttoolbar.xpi *

# post zipping

unlink chrome.manifest
ln -s chrome.manifest.dev chrome.manifest


